package cn.itsource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
@SpringBootApplication
@MapperScan("cn.itsource.*.mapper")
//扫描监听器的包 因为监听器的注解@WebListener是Web项目的 本项目是SpringBoot项目
@ServletComponentScan(value = {"cn.itsource.system.listener"})
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}
